/*******************************************************************************
 * Copyright (c) 2008, 2009 Tapestry IDE Developers
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Tapestry IDE Developers - initial API and implementation
 *******************************************************************************/
package com.googlecode.tapestry.ide.internal.core.ioc;

import com.googlecode.tapestry.ide.core.ioc.IBeanFactory;

/**
 * A factory for creating Bean objects.
 */
public class BeanFactory implements IBeanFactory {

	/** The adapter. */
	private IBeanFactoryAdapter adapter = new SimpleBeanFactoryAdapter();

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.googlecode.tapestry.ide.core.ioc.IBeanFactory#getBean(java.lang.String
	 * )
	 */
	@Override
	public Object getBean(String id) {
		return adapter.getBean(id);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.googlecode.tapestry.ide.core.ioc.IBeanFactory#shutdown()
	 */
	@Override
	public void shutdown() {
		adapter.shutdown();
	}

}
